<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" CodeBehind="C_ListSearch.aspx.cs" Inherits="ScottCateAjax2008.Lesson03.C_ListSearch" Title="Search List Extender" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:ScriptManager ID="SM1" runat="server" />
    <br />
    <asp:ListBox ID="CityListBox" 
        DataSourceID="CityData" Rows="10" DataTextField="name" runat="server" />

    <asp:ListBox ID="SearchList" 
        DataSourceID="CityData" Rows="10" DataTextField="name" runat="server" />

    <cc1:ListSearchExtender 
        ID="ListSearchExtender1" 
        TargetControlID="SearchList"
        runat="server">
    </cc1:ListSearchExtender>
    <br />
    <br />
    &nbsp;&nbsp;
    
    <asp:XmlDataSource 
        runat="server"
        id="CityData"
        
        DataFile="~/App_Data/CityList.xml"
        XPath="/CityList/city" />
        
</asp:Content>